package behavioradaptation.analysisdata;


import java.util.LinkedList;
import java.util.List;

import planninglanguage.plans.Plan;
import base.WargusGameState;

public class PlanFailuresData {
	// Failed Plan 
	private Plan m_failedPlan;
	// Game State when the plan failed
	private WargusGameState m_gamestate;
	// Index in the trace when the plan failed
	private int m_traceIndex;
	private List<FailureTypes.m_failuretype> m_failuresList = new LinkedList<FailureTypes.m_failuretype>();
	public PlanFailuresData(Plan a_failedPlan, List<FailureTypes.m_failuretype> a_failureList, WargusGameState a_gameState, int a_traceIndex){
		m_failedPlan = a_failedPlan;
		m_failuresList = a_failureList;
		m_gamestate = a_gameState;
		m_traceIndex = a_traceIndex;
	}
	// Helper getter and setters
	public WargusGameState getGameState()
	{
		return m_gamestate;
		
	}
	public List<FailureTypes.m_failuretype> getFailures()
	{
		return m_failuresList;
	}
	public Plan getPlan()
	{
		return m_failedPlan;
	}
	public int getIndex()
	{
		return m_traceIndex;
	}
}
